<!DOCTYPE html>
<html>
<head>
    <title>电子价签</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <#if shiro.hasPermission(":esl:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
        </
        #if>
        <#if shiro.hasPermission(":esl:update")>
        <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
    </
    #if>
    <#if shiro.hasPermission(":esl:delete")>
    <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</
#if>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label">错误代码</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.statusNo" placeholder="错误代码"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.type" placeholder=""/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">user标识</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.user" placeholder="user标识"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">基站id</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.apId" placeholder="基站id"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">上一次心跳时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.lastHbTime" placeholder="上一次心跳时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">价签的心跳版本号</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.firmwareId" placeholder="价签的心跳版本号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">价签的能量值</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.rfPower" placeholder="价签的能量值"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">保留</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.reserve" placeholder="保留"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">价签的SET听帧周期</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.setWor" placeholder="价签的SET听帧周期"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">是否支持NFC</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.nfc" placeholder="是否支持NFC"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">价签id</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.eslId" placeholder="价签id"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">电量值，31指3.1V</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.battery" placeholder="电量值，31指3.1V"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">价签的ROM版本号</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.romVersion" placeholder="价签的ROM版本号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">价签所属企业id</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="esl.compId" placeholder="价签所属企业id"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..."
                   @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules//esl.js?_${.now?long}"></script>
</body>
</html>